package org.fintan.make.dao;

import java.util.List;

import org.fintan.make.entity.User;
import org.fintan.make.params.UserParam;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    /*
     * 根据条件查询user
     */
    List<User> selectUserByCondition(UserParam param);
    
    User selectUserByUserName(@Param("userName") String userName);
}